package com.github.captcha.generator.model.dto;

import com.github.captcha.common.constant.CaptchaTypeConstant;
import com.github.captcha.common.constant.CommonConstant;
import lombok.*;

/**
 * @Author: haichuan.lu
 * @date 2023/02/23 17:14
 * @Description 验证码转换实体
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class RequestParam {

    /** 背景格式化类型. */
    private String backgroundFormatName = "jpeg";

    /** 模板图片格式化类型. */
    private String templateFormatName = "png";

    /** 是否混淆. */
    private Boolean obfuscate = true;

    /** 类型. */
    private String type = CaptchaTypeConstant.SLIDER;

    /** 背景图片标签, 用户二级过滤背景图片，或指定某背景图片. */
    private String backgroundImageTag = CommonConstant.DEFAULT_TAG;

    /** 滑动图片标签,用户二级过滤模板图片，或指定某模板图片.. */
    private String templateImageTag = CommonConstant.DEFAULT_TAG;

    /** 扩展参数.*/
    private Object param;
}
